import request from '@/utils/request'

//  获取权限列表
export const getPermissionListAPI = () => request.get('/sys/permission')

//  新增权限

export const addPermissionAPI = (data) => request.post('/sys/permission', data)

// 获取权限点详情
export const getPermissionDetailAPI = (id) => request.get(`/sys/permission/${id}`)

// 修改权限点详情

export const updataPermissionAPI = (data) => request.get(`/sys/permission/${data.id}`, data)

// 删除权限

export const delPermissionAPI = (id) => request.delete(`/sys/permission/${id}`)
